﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Encoder;


namespace VirginiaWeb
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void butEncryption_Click(object sender, EventArgs e)
        {
            //加密
            MyEncoder myEncoder = new MyEncoder();
            myEncoder.Plaintext = this. txtPlaintext.Text;
            myEncoder.Key = this.txtkey.Text;
            myEncoder.Encode();
            //输出密文
            this.labCiphert.Text = myEncoder.Cypher;
        }
    }
}
